package com.caht.mapper;

import com.caht.DTO.UserDTO;
import com.caht.DTO.UserDTOS.FollowUserDTO;
import com.caht.VO.UserFollowVO;
import com.caht.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.websocket.server.PathParam;
import java.util.List;

@Mapper
public interface UserMapper {
    /**
     * 查询用户是否存在
     * @param userDTO
     * @return
     */
    User getCode(UserDTO userDTO);

    /**
     * 添加用户
     */
    void insert(User user);
    List<UserFollowVO> getFollowList(@Param("followingId") Long followingId, @Param("userId") Long userId);
}
